#include <iostream>
#include "CallableThread.h"
#include <sys/wait.h>
#include "iostream"

using namespace callable::thread;

using std::cout;
using std::endl;

void callback(){
    cout << "callable callback is called" << endl;
    // 在这里执行你想要的操作，并设置返回值
    return;
}

int main(){
    auto cThread = new CallableThread();
    cThread->execMethodAll(callback);
    wait(nullptr);
    std::cout<<"hello world"<<std::endl;
}


